package com.lightbook.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author beixiang
 * @version 1.0
 * @description TODO
 * @date 2023/3/8 14:36
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Classification {
//    分类Id
      @TableId(type = IdType.AUTO)
    private Integer classificationId;

//    分类名
    private String classificationName;

//    上级id
    private String superiorId;

//  分类级别
    private  String classGrade;

//  下属节点
    @TableField(exist = false)
    private List<Classification> children;

}
